<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title></title>
      <style type="text/css">
		  /* 
		  input[type='text']{
			  background-color: red;
		  }
		  input[type='password']{
			  background-color: blue;
		  } */
		  input[name='userName'] {
			  background-color: red;
		  }
		  input[name='password'] {
		  	  background-color: blue;
		  }
      </style>
   </head>
   <body>
      用户名:<input type="text" name="userName" /><br/>
      密码:<input type="password" name="password" /><br/>
   </body>

</html>
